/* CodeBuilder代码生成器 生成时间：2011-12-03 20:03:11 */
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Maticsoft.DBUtility;

namespace Model
{
    /// <summary>
	/// TB_Admin:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
    public class Admin
    {
        public Admin()
		{}
        #region Model
        private Int32? _id;
        private Int32? _roleid;
        private string _username;
        private string _password;
        private string _lastloginip;
        private DateTime? _lastlogintime;
        private Int32? _logincount;
        private string _realname;
        private string _email;
        private Boolean? _ispass;
        private DateTime? _addtime;
        /// <summary>
		/// 主键
		/// </summary>
        [SqlField("ID",SqlDbType.Int,4)]
		public Int32? ID
		{
			set{ _id = value; }
			get{ return _id; }
		}
        /// <summary>
		/// 角色ID
		/// </summary>
        [SqlField("RoleID",SqlDbType.Int,4)]
		public Int32? RoleID
		{
			set{ _roleid = value; }
			get{ return _roleid; }
		}
        /// <summary>
		/// 用户名
		/// </summary>
        [SqlField("Username",SqlDbType.NVarChar,200)]
		public string Username
		{
			set{ _username = value; }
			get{ return _username; }
		}
        /// <summary>
		/// 密码
		/// </summary>
        [SqlField("Password",SqlDbType.NVarChar,200)]
		public string Password
		{
			set{ _password = value; }
			get{ return _password; }
		}
        /// <summary>
		/// 最后一次登录IP
		/// </summary>
        [SqlField("Lastloginip",SqlDbType.NVarChar,50)]
		public string Lastloginip
		{
			set{ _lastloginip = value; }
			get{ return _lastloginip; }
		}
        /// <summary>
		/// 最后一次登录时间
		/// </summary>
        [SqlField("Lastlogintime",SqlDbType.DateTime,8)]
		public DateTime? Lastlogintime
		{
			set{ _lastlogintime = value; }
			get{ return _lastlogintime; }
		}
        /// <summary>
		/// 登录次数
		/// </summary>
        [SqlField("Logincount",SqlDbType.Int,4)]
		public Int32? Logincount
		{
			set{ _logincount = value; }
			get{ return _logincount; }
		}
        /// <summary>
		/// 管理员名称
		/// </summary>
        [SqlField("Realname",SqlDbType.NVarChar,200)]
		public string Realname
		{
			set{ _realname = value; }
			get{ return _realname; }
		}
        /// <summary>
		/// 邮箱
		/// </summary>
        [SqlField("Email",SqlDbType.NVarChar,200)]
		public string Email
		{
			set{ _email = value; }
			get{ return _email; }
		}
        /// <summary>
		/// 审核
		/// </summary>
        [SqlField("IsPass",SqlDbType.Bit,1)]
		public Boolean? IsPass
		{
			set{ _ispass = value; }
			get{ return _ispass; }
		}
        /// <summary>
		/// 添加时间
		/// </summary>
        [SqlField("AddTime",SqlDbType.DateTime,8)]
		public DateTime? AddTime
		{
			set{ _addtime = value; }
			get{ return _addtime; }
		}
        #endregion Model
    }
}